CommandCopy Class Reference

#include <CommandCopy.h>

Inheritance diagram for CommandCopy:

Command List of all members.

Public Member Functions

 CommandCopy (OSGWindows *osgwind)
 CommandCopy (OSGWindows *osgwind, TraffEduObject *obj)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
TraffEduObject * obj_
int rightCLK

Constructor & Destructor Documentation

CommandCopy::CommandCopy (  OSGWindows *  osgwind  ) 
 

A constructor. Initializes osgwind_ and rightCLK variables. It is called if the copy operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.

CommandCopy::CommandCopy (  OSGWindows *  osgwind,
TraffEduObject *  obj
) 
 

A constructor. Initializes osgwind_, obj_, and rightCLK variables. It is called if the copy operation is done from the menubar.

Parameters:
osgwind an OSGWindows pointer.
obj a TraffEduObject pointer.


Member Function Documentation

bool CommandCopy::execute (   )  [virtual]
 

do the copy operation.

Returns:
Operation success

Implements Command.

bool CommandCopy::unexecute (   )  [virtual]
 

undo the copy operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

TraffEduObject* CommandCopy::obj_ [private]
 

a private variable. It is used to hold the copied object.

OSGWindows* CommandCopy::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

int CommandCopy::rightCLK [private]
 

a private variable. It shows if the CommandCopy is called from the RightClickMenu or not.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO